home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / PInterfaces / Notification.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  2.3 KB  |  101 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Notification.p
  3.  
  4.      Contains:    Notification Manager interfaces
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1989-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT Notification;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __NOTIFICATION__}
  27. {$SETC __NOTIFICATION__ := 1}
  28.  
  29. {$I+}
  30. {$SETC NotificationIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __MACTYPES__}
  34. {$I MacTypes.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __OSUTILS__}
  37. {$I OSUtils.p}
  38. {$ENDC}
  39.  
  40.  
  41. {$PUSH}
  42. {$ALIGN MAC68K}
  43. {$LibExport+}
  44.  
  45.  
  46. TYPE
  47.     NMRecPtr = ^NMRec;
  48. {$IFC TYPED_FUNCTION_POINTERS}
  49.     NMProcPtr = PROCEDURE(nmReqPtr: NMRecPtr);
  50. {$ELSEC}
  51.     NMProcPtr = ProcPtr;
  52. {$ENDC}
  53.  
  54.     NMUPP = UniversalProcPtr;
  55.     NMRec = RECORD
  56.         qLink:                    QElemPtr;                                {  next queue entry }
  57.         qType:                    INTEGER;                                {  queue type -- ORD(nmType) = 8 }
  58.         nmFlags:                INTEGER;                                {  reserved }
  59.         nmPrivate:                LONGINT;                                {  reserved }
  60.         nmReserved:                INTEGER;                                {  reserved }
  61.         nmMark:                    INTEGER;                                {  item to mark in Apple menu }
  62.         nmIcon:                    Handle;                                    {  handle to small icon }
  63.         nmSound:                Handle;                                    {  handle to sound record }
  64.         nmStr:                    StringPtr;                                {  string to appear in alert }
  65.         nmResp:                    NMUPP;                                    {  pointer to response routine }
  66.         nmRefCon:                LONGINT;                                {  for application use }
  67.     END;
  68.  
  69.  
  70. CONST
  71.     uppNMProcInfo = $000000C0;
  72.  
  73. PROCEDURE CallNMProc(nmReqPtr: NMRecPtr; userRoutine: NMUPP);
  74.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  75.     INLINE $205F, $4E90;
  76.     {$ENDC}
  77.  
  78. FUNCTION NewNMProc(userRoutine: NMProcPtr): NMUPP;
  79.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  80.     INLINE $2E9F;
  81.     {$ENDC}
  82. FUNCTION NMInstall(nmReqPtr: NMRecPtr): OSErr;
  83.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  84.     INLINE $205F, $A05E, $3E80;
  85.     {$ENDC}
  86. FUNCTION NMRemove(nmReqPtr: NMRecPtr): OSErr;
  87.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  88.     INLINE $205F, $A05F, $3E80;
  89.     {$ENDC}
  90.  
  91. {$ALIGN RESET}
  92. {$POP}
  93.  
  94. {$SETC UsingIncludes := NotificationIncludes}
  95.  
  96. {$ENDC} {__NOTIFICATION__}
  97.  
  98. {$IFC NOT UsingIncludes}
  99.  END.
  100. {$ENDC}
  101.